package com.tour.client;

import com.dtflys.forest.annotation.DataVariable;
import com.dtflys.forest.annotation.Get;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface MyClient {

    @Get(url = "http://api.caiyunapp.com/v2.5/EG1e0nergiKwlBvR/${localtion}/realtime.json")
    Map getWeather(@DataVariable("localtion")String localhost);
}